#!/usr/bin/env python
# encoding: utf-8

print "cwweather"

# built-in stuff
import unittest
import sys
sys.path.append("../")
# home made stuff
from scriptgoodies import getTestingEnvironment
# stuff to test
from cwweather import *

class CwWeatherTest(unittest.TestCase):
	
	def testRun(self):
		env = getTestingEnvironment("fr_cwweather.json")
		env["constants"] = {"language":"fr"}
		env["context"] = {"selection": "Metz"}
		print dict(main(env))["htmlBox"]["text"]


if __name__ == '__main__':
	unittest.main()

